# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-librelingo-utils
pkgver=2.6.1
pkgrel=1
pkgdesc="Utilities to be used in LibreLingo-related-packages"
url="https://github.com/kantord/LibreLingo"
arch="noarch"
license="AGPL-3.0-only"
depends="
	py3-librelingo-types
	py3-regex
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/l/librelingo_utils/librelingo_utils-$pkgver.tar.gz"
options="!check" # No tests in the PyPi package
builddir="$srcdir/librelingo_utils-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
56268c17d537212a22701bfd185784ecad6d25e662237039cde6d408757d7fadf92e121cef362aa797bb22278b9b1501d7a124b6d5d0c8610eb676022d44bbb9  librelingo_utils-2.6.1.tar.gz
"
